.game {
  background: #000;
  background: rgba(0,0,0,.8);
  .clear();
}

.game-tab {
  text-align: center;
  border-bottom: 1px solid #323232;
  font-size: 0;
  white-space: nowrap;

  .clear();
}

.game-tab-item {
  display: inline-block;
  margin: 0 10px;

  a {
    display: block;
    height: 60px;
    color: #999;
    line-height: 60px;
    font-size: 16px;
    text-align: center;
    padding: 0 20px;
    border-bottom: 2px solid transparent;

    .text-overflow();
  }

  &:hover a,
  &.active a{
    color: #fff;
    border-bottom-color: #cc2944;
  }
}

.game-content {
  .clear();
}

.game-content-item {
  display: none;

  &.active {
    display: block;
  }
}

.game-list {
  padding-top: 15px;
  padding-left: 1px;
  .clear();
}

.game-item {
  position: relative;
  overflow: hidden;
  float: left;
  padding: 5px;
  width: 202px;
  min-height: 1px;

  &._row2 {
    width: 590px;
  }

  // top1-10
  &._1 .game-item-content:after {
    content: '';
    position: absolute;
    top: 78px * .2 / -2;
    left: 80px * .2 / -2;
    display: block;
    width: 80px;
    height: 78px;
    background: data-uri('../img/top1.png') no-repeat center center;
    transform: scale(.8);
  }
  &._2 .game-item-content:after {
    content: '';
    position: absolute;
    top: 78px * .2 / -2;
    left: 80px * .2 / -2;
    display: block;
    width: 80px;
    height: 78px;
    background: data-uri('../img/top2.png') no-repeat center center;
    transform: scale(.8);
  }
  &._3 .game-item-content:after {
    content: '';
    position: absolute;
    top: 78px * .2 / -2;
    left: 80px * .2 / -2;
    display: block;
    width: 80px;
    height: 78px;
    background: data-uri('../img/top3.png') no-repeat center center;
    transform: scale(.8);
  }
  &._4 .game-item-content:after {
    content: '';
    position: absolute;
    top: 78px * .2 / -2;
    left: 80px * .2 / -2;
    display: block;
    width: 80px;
    height: 78px;
    background: data-uri('../img/top4.png') no-repeat center center;
    transform: scale(.8);
  }
  &._5 .game-item-content:after {
    content: '';
    position: absolute;
    top: 78px * .2 / -2;
    left: 80px * .2 / -2;
    display: block;
    width: 80px;
    height: 78px;
    background: data-uri('../img/top5.png') no-repeat center center;
    transform: scale(.8);
  }
  &._6 .game-item-content:after {
    content: '';
    position: absolute;
    top: 78px * .2 / -2;
    left: 80px * .2 / -2;
    display: block;
    width: 80px;
    height: 78px;
    background: data-uri('../img/top6.png') no-repeat center center;
    transform: scale(.8);
  }
  &._7 .game-item-content:after {
    content: '';
    position: absolute;
    top: 78px * .2 / -2;
    left: 80px * .2 / -2;
    display: block;
    width: 80px;
    height: 78px;
    background: data-uri('../img/top7.png') no-repeat center center;
    transform: scale(.8);
  }
  &._8 .game-item-content:after {
    content: '';
    position: absolute;
    top: 78px * .2 / -2;
    left: 80px * .2 / -2;
    display: block;
    width: 80px;
    height: 78px;
    background: data-uri('../img/top8.png') no-repeat center center;
    transform: scale(.8);
  }
  &._9 .game-item-content:after {
    content: '';
    position: absolute;
    top: 78px * .2 / -2;
    left: 80px * .2 / -2;
    display: block;
    width: 80px;
    height: 78px;
    background: data-uri('../img/top9.png') no-repeat center center;
    transform: scale(.8);
  }
  &._10 .game-item-content:after {
    content: '';
    position: absolute;
    top: 78px * .2 / -2;
    left: 80px * .2 / -2;
    display: block;
    width: 80px;
    height: 78px;
    background: data-uri('../img/top10.png') no-repeat center center;
    transform: scale(.8);
  }
}

.game-item-content {
  position: relative;
  height: 250px;
  border: 1px solid transparent;
  transition: all .2s;
}

.game-item-prev {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-image: data-uri('../img/game-default-bg.jpg');
}

.game-item-detail {
  position: absolute;
  height: 20px;
  line-height: 20px;
  padding: 0 10px;
  bottom: 5px;
  left: 0;
  width: 100%;
  color: #fff;

  .text-overflow();
}

.game-item-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none\9;
  transition: all .3s;
  opacity: 0;
  background: #000;
  background: rgba(0,0,0,.7);
  visibility: hidden;
  padding-top: 80px;
  overflow: hidden;
  text-align: center;

  .name {
    margin-bottom: 10px;
    color: #fff;
    font-size: 16px;
    padding: 0 15px;

    .text-overflow();
  }

  > a {
    display: inline-block;
    height: 40px;
    line-height: 40px;
    padding: 0 10px;
    min-width: 160px;
    color: #fff;
    font-size: 14px;
    border-radius: 5px;
    background: rgb(204,163,82);
    background: -moz-linear-gradient(-45deg,  rgba(204,163,82,1) 1%, rgba(153,107,61,1) 100%);
    background: -webkit-linear-gradient(-45deg,  rgba(204,163,82,1) 1%,rgba(153,107,61,1) 100%);
    background: linear-gradient(135deg,  rgba(204,163,82,1) 1%,rgba(153,107,61,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cca352', endColorstr='#996b3d',GradientType=1 );


    .text-overflow();
  }
}

.game-item:hover .game-item-content{
  border-color: #996b3d;
}

.game-item:hover .game-item-mask {
  display: block \9;
  opacity: 1;
  visibility: visible;
}

.game-list.gutter-40 {
  padding-right: 19px;
  padding-left: 19px;
  padding-top: 0;

  .game-item {
    padding: 20px;
    width: 232px;
  }
}